package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.dao.impl.activity.peakstronghold.*;
import com.yanqu.road.entity.activity.huashigang.HuaShiGangFloorConfig;
import com.yanqu.road.entity.activity.peakstronghold.*;
import com.yanqu.road.entity.activity.peakstronghold.config.PeakStrongholdBaseConfig;
import com.yanqu.road.entity.activity.peakstronghold.config.PeakStrongholdDonateConfig;
import com.yanqu.road.entity.activity.peakstronghold.config.PeakStrongholdTimeConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class PeakStrongholdActivityBusiness {
    public static Map<Integer, HuaShiGangFloorConfig> getPeakStrongholdDesertConfig(int activityId) {
        return DaoHelper.getPeakStrongholdActivityDaoImpl().getPeakStrongholdDesertConfig(activityId);
    }

    public static Map<Integer, PeakStrongholdBaseConfig> getPeakStrongholdBaseConfig(int activityId) {
        return DaoHelper.getPeakStrongholdActivityDaoImpl().getPeakStrongholdBaseConfig(activityId);
    }
    public static Map<Integer, PeakStrongholdDonateConfig> getPeakStrongholdDonateConfig(int activityId) {
        return DaoHelper.getPeakStrongholdActivityDaoImpl().getPeakStrongholdDonateConfig(activityId);
    }

    public static Map<Integer, PeakStrongholdTimeConfig> getPeakStrongholdTimeConfig(int activityId) {
        return DaoHelper.getPeakStrongholdActivityDaoImpl().getPeakStrongholdTimeConfig(activityId);
    }

    public static CrossPeakStrongholdCacheData getCrossPeakStrongholdCacheData(int activityId, int unionGroup) {
        return new CrossPeakStrongholdCacheDaoImpl().getCrossPeakStrongholdCacheData(activityId, unionGroup);
    }

    public static boolean updateCrossPeakStrongholdCacheData(CrossPeakStrongholdCacheData data) {
        return new CrossPeakStrongholdCacheDaoImpl().update(data);
    }

    public static boolean addCrossPeakStrongholdCacheData(CrossPeakStrongholdCacheData data) {
        return new CrossPeakStrongholdCacheDaoImpl().add(data);
    }

    public static Map<String, CrossUnionAbilityCacheData> getCrossUnionAbillityCacheData(int activityId) {
        return new CrossUnionAbilityCacheDaoImpl().getCrossUnionAbillityCacheData(activityId);
    }

    public static boolean updateCrossUnionAbillityCacheData(CrossUnionAbilityCacheData data) {
        return new CrossUnionAbilityCacheDaoImpl().update(data);
    }

    public static boolean addCrossUnionAbillityCacheData(CrossUnionAbilityCacheData data) {
        return new CrossUnionAbilityCacheDaoImpl().add(data);
    }

    public static Map<String, CrossPeakStrongholdUnionData> getCrossPeakStrongholdUnionData(int activityId, int unionGroup) {
        return new CrossPeakStrongholdUnionDataDaoImpl().getCrossPeakStrongholdUnionData(activityId, unionGroup);
    }

    public static boolean updateCrossPeakStrongholdUnionData(CrossPeakStrongholdUnionData data) {
        return new CrossPeakStrongholdUnionDataDaoImpl().update(data);
    }

    public static boolean addCrossPeakStrongholdUnionData(CrossPeakStrongholdUnionData data) {
        return new CrossPeakStrongholdUnionDataDaoImpl().add(data);
    }

    public static Map<Integer, Map<String, CrossPeakStrongholdDefendUnionData>> getCrossPeakStrongholdDefendUnionData(int activityId, int unionGroup) {
        return new CrossPeakStrongholdDefendUnionDataDaoImpl().getCrossPeakStrongholdDefendUnionData(activityId, unionGroup);
    }

    public static boolean updateCrossPeakStrongholdDefendUnionData(CrossPeakStrongholdDefendUnionData data) {
        return new CrossPeakStrongholdDefendUnionDataDaoImpl().update(data);
    }

    public static boolean addCrossPeakStrongholdDefendUnionData(CrossPeakStrongholdDefendUnionData data) {
        return new CrossPeakStrongholdDefendUnionDataDaoImpl().add(data);
    }

    public static Map<Integer, PeakStrongholdUploadMarkData> getPeakStrongholdUploadMarkData(int activityId) {
        return new PeakStrongholdUploadMarkDaoImpl().getPeakStrongholdUploadMarkData(activityId);
    }

    public static boolean updatePeakStrongholdUploadMarkData(PeakStrongholdUploadMarkData data) {
        return new PeakStrongholdUploadMarkDaoImpl().update(data);
    }

    public static boolean addPeakStrongholdUploadMarkData(PeakStrongholdUploadMarkData data) {
        return new PeakStrongholdUploadMarkDaoImpl().add(data);
    }

    public static List<CrossUnionAbilityRankData> getCrossUnionAbilityRankData(int activityId) {
        return new CrossUnionAbilityRankDataDaoImpl().getCrossUnionAbilityRankData(activityId);
    }

    public static boolean updateCrossUnionAbilityRankData(CrossUnionAbilityRankData data) {
        return new CrossUnionAbilityRankDataDaoImpl().update(data);
    }

    public static boolean addCrossUnionAbilityRankData(CrossUnionAbilityRankData data) {
        return new CrossUnionAbilityRankDataDaoImpl().add(data);
    }

    public static boolean addCrossUserGuessData(CrossPeakStrongholdUserGuessData data) {
        return new CrossPeakStrongholdUserGuessDataDaoImpl().add(data);
    }

    public static boolean updateCrossUserGuessData(CrossPeakStrongholdUserGuessData data) {
        return new CrossPeakStrongholdUserGuessDataDaoImpl().update(data);
    }

    public static Map<Long, CrossPeakStrongholdUserGuessData> getCrossUserGuessData(int activityId, int unionGroup) {
        return new CrossPeakStrongholdUserGuessDataDaoImpl().getData(activityId, unionGroup);
    }
}
